import java.util.Scanner;
public class test_BZL {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String input = scanner.next();
        int symbolindex = input.indexOf('/');
        if (symbolindex == -1) {// 若未找到符号'/'，直接逆序整个字符串
            String reversed = reverseString(input);
            System.out.println(reversed);
        } else {//若找到了'/'符号，获取'/'前的字串并逆序输出
            String part1 =reverseString(input.substring(0, symbolindex));
            String part2 = reverseString(input.substring(symbolindex + 1));
            System.out.println(part1 + "/" + part2);
        }
    }
    public static String reverseString(String str) {
        StringBuilder sb = new StringBuilder(str);
        int left = 0;
        int right = sb.length() - 1;
        while (left < right) {//暂存左指针向的字符
            char temp = sb.charAt(left);
            sb.setCharAt(left, sb.charAt(right));
            sb.setCharAt(right, temp);
            left++;
            right--;
        }
        return sb.toString();
    }
}
